package com.longteng.lesson.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator
 * DATE : 2018/5/20
 * TIME : 15:41
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@Controller
public class RedirectController {
    @RequestMapping("/redirectTest")
    public String handlerTest() {
        return "redirect:/getUser";
    }
    @RequestMapping("/forwardTest")
    public String forwardTest() {
        return "forward:/getUser";
    }
}
